<?php

namespace app\index\controller;

use app\index\model\Htuser;
use think\Controller;
use think\Request;

class Register extends Controller
{
    
    public function index()
    {    
        $user = new Htuser();
        config('default_return_type','json');
        try{
            $me = $user->register();
            return['status'=>true,'message'=>$me];
        }catch (\Exception $f){
            return['status'=>false,'error'=>$f->getMessage()];
        }
        return $me;
    }

    
}
